 <ion-view id="orderlist-view" hide-nav-bar="true" view-title="和护健康" wf-tab id="tab-order-list">

        <ion-header-bar align-title="center" class="head">
            <h1 class="min-title">我的订单</h1>
        </ion-header-bar>
        <ion-content>
            <ion-refresher
                    pulling-text="重新加载..."
                    on-refresh="doRefresh()">
            </ion-refresher>
            <!--切换开关 -->
            <div class="qiehuan">
                <div id="qhl" class="shadow-btn qh-btn qhl on" ng-class="selectTap==0? 'on shadow-btn' : 'off'" ng-click="clickqhl()">当前订单</div>
                <div id="qhr" class="qhr qh-btn off" ng-class="selectTap==1? 'on shadow-btn' : 'off'" ng-click="clickqhr()">历史订单</div>
            </div>
            <!--切换开关 -->
            <div ng-if="dangqian">
                <div ng-repeat="order in orderList">
                    <div class="yyfw shadow-box" >
                        <img wf-src="img/yuyue/touxiang.png" class="ddtx"/>
                        <hr class="ddhr"/>
                        <div class="ddlt" ng-click="goDetail(order.id)">
                            <label class="ddlb1">{{order.title}}</label><br/>
                            <label class="ddlb2">{{order.invoice}}</label><br/>
                            <label class="ddlb2">待付款：<span style="color: red">&yen;{{order.payMoney?order.payMoney: 0}}</span></label><br/>
                            <label class="ddlb2">{{order.start| date:'yyyy-MM-dd'}}~{{order.end| date:'yyyy-MM-dd'}}</label><br/>
                            <label class="ddlb2">{{order.addr}}</label>
                        </div>
                        <label class="ddlb3">{{order.status}}</label>
                    </div>
                    <span class="ddbtm shadow-btn" ng-if="order.state <= 2" ng-click="cancel(order.id)">取消预约</span>
                    <!--<span class="ddbtm2 shadow-btn" ng-if="order.state == 1" ng-click="paiban(order.id)">排&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;班</span>-->
                    <span class="ddbtm shadow-btn" ng-if="order.state == 4" ng-click="ahead(order.id)">提前结束</span>
                    <span class="ddbtm shadow-btn" ng-if="order.state == 8" ng-click="goPay(order.id)">支&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;付</span>
                </div>
                <!--<div class="yyfw shadow-box">-->
                    <!--<img wf-src="img/yuyue/touxiang.png" class="ddtx"/>-->
                    <!--<hr class="ddhr"/>-->
                    <!--<div class="ddlt" ng-click="goDetail()">-->
                        <!--<label class="ddlb1">住院陪护</label><br/>-->
                        <!--<label class="ddlb2">DD2017111818000729345</label><br/>-->
                        <!--<label class="ddlb2">&yen;105/天</label><br/>-->
                        <!--<label class="ddlb2">2017/10/10-2017/10/12</label><br/>-->
                        <!--<label class="ddlb2">第十二人民医院A座1180号</label>-->
                    <!--</div>-->
                    <!--<label class="ddlb3">服务中</label>-->
                <!--</div>-->
                <!--<span class="ddbtm shadow-btn">申请退单</span>-->
                <!--<span class="ddbtm2 shadow-btn" ng-click="goPay(order.id)">支&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;付</span>-->
            </div>
            <div ng-if="lishi">
                <div ng-repeat="order in orderList">
                    <div class="yyfw shadow-box" >
                        <img wf-src="img/yuyue/touxiang.png" class="ddtx"/>
                        <hr class="ddhr"/>
                        <div class="ddlt" ng-click="goDetail(order.id)">
                            <label class="ddlb1">{{order.title}}</label><br/>
                            <label class="ddlb2">{{order.invoice}}</label><br/>
                            <label class="ddlb2">&yen;{{order.charge}}</label><br/>
                            <label class="ddlb2">{{order.start| date:'yyyy-MM-dd'}}-{{order.end| date:'yyyy-MM-dd'}}</label><br/>
                            <label class="ddlb2">{{order.addr}}</label>
                        </div>
                        <label class="ddlb3">{{order.status}}</label>
                    </div>
                </div>
            </div>
            <ion-infinite-scroll
                    ng-if="canLoadMore()"
                    distance="20%"
                    immediate-check=true
                    on-infinite="loadMore()"></ion-infinite-scroll>
        </ion-content>
    </ion-view>


